﻿using System;
using System.Collections.Generic;
using System.Web;
using Adp = WebMvc.App;
using NFinal.Advanced;


namespace WebMvc.App.Web.Default.DataBaseController
{
    public class PageAction  : Controller
	{
		public PageAction(System.IO.TextWriter tw):base(tw){}
		public PageAction(string fileName) : base(fileName) {}
        #region 查询
        //查询首行首列
        
        //查询所有行
        
        //查询随机行
        
        //查询前多少行
        
        //查询一行
        

        #endregion
        #region 增删改
        public void Page()
        {

            string url = "/App/IndexController/Index.htm";
            string fileName = MapPath("/App/HTML/IndexController/Index.html");
            System.Web.Caching.CacheDependency dep=new System.Web.Caching.CacheDependency(fileName);
            System.IO.StreamReader sr=new System.IO.StreamReader("StreamReader");
            string html= sr.ReadToEnd();
            sr.Close();
            HttpRuntime.Cache.Insert(url,html, dep, DateTime.Now.AddSeconds(20), new TimeSpan(20 * 10));
            HttpRuntime.Cache.Get("key").ToString();
        }


        
        
        
        #endregion
        #region 父子表,多表关系
        
        #endregion
    }
}